package cn.dac.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/aop")
public class TestController {

    @GetMapping("/test")
    @ResponseBody
    public String test(){
        System.out.println("test方法");
        return "Aop 拦截";
    }
}
